<template>
	<el-main>
		<el-row :gutter="20" class="box">
			<el-col :span="8">
				<el-card header="部门导入模版文件">
					<div>
						<a  style="cursor: pointer;font-size: 18px;color: #1c6ca1;" @click="downloadTemplate('/template/bmmb.xlsx')">部门模版.xlsx</a>
						<p style="margin-top: 10px">请先下载该模版,按要求编辑文件后在部门管理模块中进入导入!</p>
					</div>
				</el-card>
			</el-col>
			<el-col :span="8">
				<el-card header="用户导入模版文件">
					<div>
						<a  @click="downloadTemplate('/template/yhmb.xlsx')" style="cursor: pointer;font-size: 18px;color: #1c6ca1;">用户模版.xlsx</a>
						<p style="margin-top: 10px">请先下载该模版,按要求编辑文件后在人员管理模块中进入导入!</p>
					</div>
				</el-card>
			</el-col>
		</el-row>

		<el-row :gutter="20" class="box">
			<el-col :span="8">
				<el-card header="HR部门导入模版文件">
					<div>
						<a  @click="downloadTemplate('/template/rsbmmb.xlsx')" style="cursor: pointer;font-size: 18px;color: #1c6ca1;">人事部门模版.xlsx</a>
						<p style="margin-top: 10px">请先下载该模版,按要求编辑文件后在人HR部门管理中进入导入!</p>
					</div>
				</el-card>
			</el-col>
			<el-col :span="8">
				<el-card header="HR用户导入模版文件">
					<div>
						<a  @click="downloadTemplate('/template/rsdamb.xlsx')" style="cursor: pointer;font-size: 18px;color: #1c6ca1;">人事档案模版.xlsx</a>
						<p style="margin-top: 10px">请先下载该模版,按要求编辑文件后在HR人员管理模块中进入导入!</p>
					</div>
				</el-card>
			</el-col>
			<el-col :span="8">
				<el-card header="HR人事合同导入模版文件">
					<div>
						<a  @click="downloadTemplate('/template/rshtmb.xlsx')" style="cursor: pointer;font-size: 18px;color: #1c6ca1;">人事合同模版.xlsx</a>
						<p style="margin-top: 10px">请先下载该模版,按要求编辑文件后在HR合同管理模块中进入导入!</p>
					</div>
				</el-card>
			</el-col>
		</el-row>
		<el-row :gutter="20" class="box">
			<el-col :span="8">
				<el-card header="薪资记录导入模版文件">
					<div>
						<a  @click="downloadTemplate('/template/yzhlmb.xlsx')" style="cursor: pointer;font-size: 18px;color: #1c6ca1;">人事部门模版.xlsx</a>
						<p style="margin-top: 10px">请先下载该模版,按要求编辑文件后在人HR部门管理中进入导入!</p>
					</div>
				</el-card>
			</el-col>
		</el-row>
		<el-row :gutter="20" class="box">
			<el-col :span="8">
				<el-card header="通讯录模版文件">
					<div>
						<a  @click="downloadTemplate('/template/txlmb.xlsx')" style="cursor: pointer;font-size: 18px;color: #1c6ca1;">通讯录模版.xlsx</a>
						<p style="margin-top: 10px">请先下载该模版,按要求编辑文件后在人通讯录管理中进入导入!</p>
					</div>
				</el-card>
			</el-col>
			<el-col :span="8">
				<el-card header="办公物资模版文件">
					<div>
						<a  @click="downloadTemplate('/template/wzmb.xlsx')" style="cursor: pointer;font-size: 18px;color: #1c6ca1;">物资模版.xlsx</a>
						<p style="margin-top: 10px">请先下载该模版,按要求编辑文件后在人物资管理中进入导入!</p>
					</div>
				</el-card>
			</el-col>
		</el-row>

	</el-main>

</template>

<script>
import config from "@/config"
export default {
	data() {
		return {
			apiUrl:config.API_URL
		}
	},
	methods: {
		downloadTemplate(url)
		{
			window.open(this.apiUrl+url+"?ddtab=true",'_blank')
		}
	}
}
</script>

<style scoped>
</style>
